package com.rgp.serviceprice.controller;

import com.rgp.internalcommon.dto.ForecastPriceDto;
import com.rgp.internalcommon.dto.ResponseResult;import com.rgp.serviceprice.service.ForecastPriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author nhp
 * @version 1.0
 * @description TODO
 * @date 2024-04-14 0:50
 */
@RestController
public class ForecastPriceController {

    @Autowired
    private ForecastPriceService forecastPriceService;

    @PostMapping("/forecast-price")
    public ResponseResult forecastPrice(@RequestBody ForecastPriceDto forecastPriceDto){
        ResponseResult result = forecastPriceService.forecastPrice(forecastPriceDto);
        return result;
    }
}